﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x020000AA RID: 170
	public class TDropViewSqlStatement : TCustomSqlStatement
	{
		// Token: 0x0600054D RID: 1357 RVA: 0x002FCDEE File Offset: 0x002FAFEE
		public TDropViewSqlStatement(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdropview;
		}

		// Token: 0x0600054E RID: 1358 RVA: 0x002FCDFF File Offset: 0x002FAFFF
		internal override void buildsql()
		{
		}

		// Token: 0x0600054F RID: 1359 RVA: 0x002FCE01 File Offset: 0x002FB001
		internal override void clear()
		{
		}

		// Token: 0x06000550 RID: 1360 RVA: 0x002FCE03 File Offset: 0x002FB003
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000551 RID: 1361 RVA: 0x002FCE0A File Offset: 0x002FB00A
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x06000552 RID: 1362 RVA: 0x002FCE0C File Offset: 0x002FB00C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TDropViewSqlNode tdropViewSqlNode = (TDropViewSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.viewNameList = tdropViewSqlNode.ViewNameList;
			if (this.viewNameList != null)
			{
				this.viewName = this.viewNameList.getObjectName(0);
			}
			else
			{
				this.viewName = tdropViewSqlNode.ViewName;
			}
			return 0;
		}

		// Token: 0x170000D5 RID: 213
		// (get) Token: 0x06000553 RID: 1363 RVA: 0x002FCE6C File Offset: 0x002FB06C
		// (set) Token: 0x06000554 RID: 1364 RVA: 0x002FCE74 File Offset: 0x002FB074
		public virtual TObjectName ViewName
		{
			get
			{
				return this.viewName;
			}
			set
			{
				this.viewName = value;
			}
		}

		// Token: 0x170000D6 RID: 214
		// (get) Token: 0x06000555 RID: 1365 RVA: 0x002FCE7D File Offset: 0x002FB07D
		// (set) Token: 0x06000556 RID: 1366 RVA: 0x002FCE85 File Offset: 0x002FB085
		public virtual TObjectNameList ViewNameList
		{
			get
			{
				return this.viewNameList;
			}
			set
			{
				this.viewNameList = value;
			}
		}

		// Token: 0x06000557 RID: 1367 RVA: 0x002FCE8E File Offset: 0x002FB08E
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000558 RID: 1368 RVA: 0x002FCE9E File Offset: 0x002FB09E
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001140 RID: 4416
		private TObjectName viewName;

		// Token: 0x04001141 RID: 4417
		private TObjectNameList viewNameList;
	}
}
